<!DOCTYPE html>
<html>
  <body>

  <script type="text/javascript">
    console.log(f1); // function f1() {}   
    console.log(f2); // undefined
    function f1() {}
    var f2 = function() {}
  </script>

</body>
</html>
